package com.study.spark.dao.category;

import com.study.spark.domain.category.Top10Category;
import com.study.spark.jdbc.JDBCHelper;

/**
 * top10品类DAO实现
 * 
 * @author Administrator
 *
 */
public class Top10CategoryDaoImpl implements Top10CategoryDao {

  @Override
  public void insert(Top10Category category) {
    String sql = "insert into top10_category values(?,?,?,?,?)";

    Object[] params = new Object[] {
        category.getTaskid(), category.getCategoryid(), category.getClickCount(),
        category.getOrderCount(), category.getPayCount() };

    JDBCHelper.getInstance().executeUpdate(sql, params);
  }

}
